
$(function() {
	var columns = [{
	    id: "#",
	    name: "",
	    width: 40,
	    behavior: "selectAndMove",
	    unselectable: true,
	    resizable: false,
	    cssClass: "cell-reorder"
	}, {
	    id: "name",
	    name: "名称",
	    field: "name",
	    width: 100,
	    cssClass: "cell-title",
	    editor: Slick.Editors.Text
	}, {
	    id: "code",
	    name: "货币",
	    field: "code",
	    width: 80,
	    cssClass: "cell-title",
	    editor: Slick.Editors.Text
	}, {
	    id: "data",
	    name: "汇率",
	    field: "data",
	    width: 80,
	    cssClass: "cell-title",
	    editor: Slick.Editors.Text
	}, {
	    id: "content",
	    name: "备注",
	    field: "content",
	    width: 150,
	    cssClass: "cell-title",
	    editor: Slick.Editors.Text
	}, {
	    id: "modifytime",
	    name: "更新时间",
	    field: "modifytime",
	    width: 180,
	    cssClass: "cell-title",
	    editor: Slick.Editors.Text
	}];
	
	var options = {
		editable: false,
	    enableAddRow: false,
	    enableCellNavigation: true,
	    asyncEditorLoading: false,
	    rowHeight: 30    
	};
	
	var grid = new Slick.Grid($("#exchange"), data, columns, options);
});
